<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css">
        table,tr,td {
            border: 1px solid red;
        }
        td{
            padding: 10px;
        }
    </style>
</head>
<body>
    <a href="/Addbook">[增加图书]</a>
    <table>
        <tr>
            <td>图书名字</td>
            <td>作者</td>
            <td>价格</td>
            <td>操作</td>
        </tr>
        <% for(var i = 0;i < book.length;i++){ %>
            <tr>
                <td><%=book[i].name%></td>
                <td><%=book[i].author%></td>
                <td><%=book[i].price%></td>
                <td><a href="/edit?name=<%=book[i].name%>">修改</a></td>
            </tr>
        <% } %>
    </table>
</body>
</html>